package com.sdk4.jinritemai.model.request;

import com.sdk4.jinritemai.DoudianRequest;
import com.sdk4.jinritemai.model.response.DoudianOrderBatchEncryptResponse;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author huangji
 * @date 2021/7/27 10:25
 */
@Getter
@Setter
public class DoudianOrderBatchEncryptRequest implements DoudianRequest<DoudianOrderBatchEncryptResponse> {

    private final String method = "order.batchEncrypt";
    /**
     * 待加密列表
     */
    private List<BatchEncryptList> batch_encrypt_list;

    @Setter
    @Getter
    public static class BatchEncryptList {
        /**
         * 明文
         */
        private String plain_text;
        /**
         * 业务标识，value为抖音订单号
         */
        private String auth_id;
        /**
         * 是否支持密文索引
         */
        private Boolean is_support_index;
        /**
         * 加密类型；1地址加密 2姓名加密 3电话加密
         */
        private Integer sensitive_type;

    }

    @Override
    public Class<DoudianOrderBatchEncryptResponse> getResponseClass() {
        return DoudianOrderBatchEncryptResponse.class;
    }

}
